<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="<?php echo $this->_var['site_url']; ?>/" />
    
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset=<?php echo $this->_var['charset']; ?>" />
    <meta http-equiv="Content-Type" content="text/html;charset=<?php echo $this->_var['charset']; ?>" />
    <link href="<?php echo $this->res_base . "/" . 'index.css'; ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->res_base . "/" . 'shop.css'; ?>" rel="stylesheet" type="text/css" />
    <title>店铺-贺喜时尚商城</title>
    <link rel="shortcut icon" href="<?php echo $this->res_base . "/" . 'images/favicon.ico'; ?>" type="image/x-icon" />
    <script type="text/javascript" src="index.php?act=jslang"></script>
    <script type="text/javascript" src="<?php echo $this->lib_base . "/" . 'jquery.js'; ?>" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo $this->res_base . "/" . 'js/select.js'; ?>" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo $this->lib_base . "/" . 'ecmall.js'; ?>" charset="utf-8"></script>

    <script type="text/javascript">
        //<!CDATA[
        var SITE_URL = "<?php echo $this->_var['site_url']; ?>";
        var REAL_SITE_URL = "<?php echo $this->_var['real_site_url']; ?>";
        var PRICE_FORMAT = '<?php echo $this->_var['price_format']; ?>';

        $(function(){
            var span = $("#child_nav");
            span.hover(function(){
                $("#float_layer:not(:animated)").show();
            }, function(){
                $("#float_layer").hide();
            });
        });
        //]]>
    </script>
    <script>
        $(function(){
            $('.other_menu22').hover(function(){
                $('.other_nav22').slideToggle();
            })
        })
    </script>
    <style>
        .other_menu22{position:relative;}
        .other_nav22{width:100px;display:none;background:#BCEBF1;position:absolute;z-index:9999;right:-100px;top:0px;}
        .other_nav22 a{float: left;display: block; width: 100px;text-align: center;}
        .other_nav22 a:hover{color:#ff0000;}
    </style>
    <?php echo $this->_var['_head_tags']; ?>
</head>
<body>
<div id="head">
    <h1 title="<?php echo htmlspecialchars($this->_var['site_title']); ?>"><a href="index.php?app=default"><img src="<?php echo $this->_var['site_logo']; ?>" alt="ECMall" /></a></h1>

    <div id="subnav">
        <p>
            您好,<?php echo htmlspecialchars($this->_var['visitor']['user_name']); ?>
            <?php if (! $this->_var['visitor']['user_id']): ?>
            [<a href="<?php echo url('app=member&act=login&ret_url=' . $this->_var['ret_url']. ''); ?>">登录</a>]
            [<a href="<?php echo url('app=member&act=register&ret_url=' . $this->_var['ret_url']. ''); ?>">注册</a>]
            <?php else: ?>
            [<a href="<?php echo url('act=logout'); ?>">退出</a>]
            <?php endif; ?>
        </p>
        <p>
            <a class="shopping" href="<?php echo url('app=cart'); ?>">购物车</a> <span>|</span>
            <a class="favorite" href="<?php echo url('app=my_favorite'); ?>">收藏夹</a> <span>|</span>
            <a class="note" href="<?php echo url('app=message&act=newpm'); ?>">站内消息<?php if ($this->_var['new_message']): ?>(<?php echo $this->_var['new_message']; ?>)<?php endif; ?></a> <span>|</span>
            <a class="help" href="<?php echo url('app=article&code=help'); ?>">帮助中心</a>
            <?php $_from = $this->_var['navs']['header']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');if (count($_from)):
    foreach ($_from AS $this->_var['nav']):
?>
            <span>|</span> <a class="user_defined" href="<?php echo $this->_var['nav']['link']; ?>"<?php if ($this->_var['nav']['open_new']): ?> target="_blank"<?php endif; ?>><?php echo htmlspecialchars($this->_var['nav']['title']); ?></a>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </p>
    </div>

    <div id="topbtn">
        <div class="topbtn1"></div>
        <div class="topbtn2"></div>
        <span id="child_nav">
            <a href="<?php echo url('app=member'); ?>" class="user">用户中心</a>
            <ul id="float_layer">
                <div id="adorn1"></div>
                <div id="adorn2"></div>
                <?php if ($this->_var['visitor']['store_id']): ?>
                <li><a href="<?php echo url('app=my_goods'); ?>">商品管理</a></li>
                <li><a href="<?php echo url('app=seller_order'); ?>">订单管理</a></li>
                <li><a href="<?php echo url('app=my_qa'); ?>">咨询管理</a></li>
                <?php else: ?>
                <li><a href="<?php echo url('app=buyer_order'); ?>">我的订单</a></li>
                <li><a href="<?php echo url('app=buyer_groupbuy'); ?>">我的团购</a></li>
                <li><a href="<?php echo url('app=my_question'); ?>">我的咨询</a></li>
                <?php endif; ?>
            </ul>
        </span>
        <span>|</span>
        <a href="<?php echo url('app=category'); ?>">我要买</a> <span>|</span>
        <a href="<?php echo url('app=my_goods&act=add'); ?>">我要卖</a>
    </div>
</div>
<nav>
    <div class="container">
        <ul>
            <li <?php if (! $this->_var['cate_id']): ?>class="selected"<?php endif; ?>><a href="index.php">首页</a></li>
            <?php $_from = $this->_var['pre_nav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['value']):
?>
            <li <?php if ($this->_var['value']['id'] == $this->_var['cate_id']): ?>class="selected"<?php endif; ?>>
            <a href="<?php echo url('app=default&act=category&id=' . $this->_var['value']['id']. ''); ?>"><?php echo $this->_var['value']['value']; ?></a>
            </li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            <?php if ($this->_var['hou_nav']): ?>
            <li class="other_menu22">其他
                <div class="other_nav22" style="display:none">
                    <?php $_from = $this->_var['hou_nav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['value']):
?>
                    <a href="<?php echo url('app=default&act=category&id=' . $this->_var['value']['id']. ''); ?>"><?php echo $this->_var['value']['value']; ?></a>
                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                </div>
            </li>
            <?php endif; ?>
        </ul>
    </div>
</nav>
<?php echo $this->fetch('services.index.html'); ?>